[NaryReassoc] reassociate GEP for CSE
[oota-llvm.git] / test / CodeGen / ARM / arm-frameaddr.ll
index 273986034c9b742db474c1f30b0c31f410880ca1..9c4173ef0ce23a7cc7c12941c4e73eea86f47942 100644 (file)
@@ -1,10 +1,15 @@
-; RUN: llc < %s -mtriple=arm-apple-darwin  | grep mov | grep r7
-; RUN: llc < %s -mtriple=arm-linux-gnueabi | grep mov | grep r11
+; RUN: llc < %s -mtriple=arm-apple-darwin  | FileCheck %s -check-prefix=DARWIN
+; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX
 ; PR4344
 ; PR4416
 
-define arm_aapcscc i8* @t() nounwind {
+define i8* @t() nounwind {
 entry:
+; DARWIN-LABEL: t:
+; DARWIN: mov r0, r7
+
+; LINUX-LABEL: t:
+; LINUX: mov r0, r11
        %0 = call i8* @llvm.frameaddress(i32 0)
         ret i8* %0
 }