OSDN Git Service

Update aosp/master LLVM for rebase to r256229
[android-x86/external-llvm.git] / test / CodeGen / AArch64 / arm64-rounding.ll
index 9311144..d487aab 100644 (file)
@@ -1,10 +1,8 @@
-; RUN: llc -O3 < %s -mcpu=cyclone | FileCheck %s
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64"
-target triple = "arm64-apple-ios6.0.0"
+; RUN: llc -O3 < %s -mtriple=arm64 | FileCheck %s
 
-; CHECK: test1
-; CHECK: frintx
+; CHECK-LABEL: test1:
 ; CHECK: frintm
+; CHECK-NOT: frintx
 define float @test1(float %a) #0 {
 entry:
   %call = tail call float @floorf(float %a) nounwind readnone
@@ -13,9 +11,9 @@ entry:
 
 declare float @floorf(float) nounwind readnone
 
-; CHECK: test2
-; CHECK: frintx
+; CHECK-LABEL: test2:
 ; CHECK: frintm
+; CHECK-NOT: frintx
 define double @test2(double %a) #0 {
 entry:
   %call = tail call double @floor(double %a) nounwind readnone
@@ -24,7 +22,7 @@ entry:
 
 declare double @floor(double) nounwind readnone
 
-; CHECK: test3
+; CHECK-LABEL: test3:
 ; CHECK: frinti
 define float @test3(float %a) #0 {
 entry:
@@ -34,7 +32,7 @@ entry:
 
 declare float @nearbyintf(float) nounwind readnone
 
-; CHECK: test4
+; CHECK-LABEL: test4:
 ; CHECK: frinti
 define double @test4(double %a) #0 {
 entry:
@@ -44,9 +42,9 @@ entry:
 
 declare double @nearbyint(double) nounwind readnone
 
-; CHECK: test5
-; CHECK: frintx
+; CHECK-LABEL: test5:
 ; CHECK: frintp
+; CHECK-NOT: frintx
 define float @test5(float %a) #0 {
 entry:
   %call = tail call float @ceilf(float %a) nounwind readnone
@@ -55,9 +53,9 @@ entry:
 
 declare float @ceilf(float) nounwind readnone
 
-; CHECK: test6
-; CHECK: frintx
+; CHECK-LABEL: test6:
 ; CHECK: frintp
+; CHECK-NOT: frintx
 define double @test6(double %a) #0 {
 entry:
   %call = tail call double @ceil(double %a) nounwind readnone
@@ -66,7 +64,7 @@ entry:
 
 declare double @ceil(double) nounwind readnone
 
-; CHECK: test7
+; CHECK-LABEL: test7:
 ; CHECK: frintx
 define float @test7(float %a) #0 {
 entry:
@@ -76,7 +74,7 @@ entry:
 
 declare float @rintf(float) nounwind readnone
 
-; CHECK: test8
+; CHECK-LABEL: test8:
 ; CHECK: frintx
 define double @test8(double %a) #0 {
 entry:
@@ -86,9 +84,9 @@ entry:
 
 declare double @rint(double) nounwind readnone
 
-; CHECK: test9
-; CHECK: frintx
+; CHECK-LABEL: test9:
 ; CHECK: frintz
+; CHECK-NOT: frintx
 define float @test9(float %a) #0 {
 entry:
   %call = tail call float @truncf(float %a) nounwind readnone
@@ -97,9 +95,9 @@ entry:
 
 declare float @truncf(float) nounwind readnone
 
-; CHECK: test10
-; CHECK: frintx
+; CHECK-LABEL: test10:
 ; CHECK: frintz
+; CHECK-NOT: frintx
 define double @test10(double %a) #0 {
 entry:
   %call = tail call double @trunc(double %a) nounwind readnone
@@ -108,9 +106,9 @@ entry:
 
 declare double @trunc(double) nounwind readnone
 
-; CHECK: test11
-; CHECK: frintx
+; CHECK-LABEL: test11:
 ; CHECK: frinta
+; CHECK-NOT: frintx
 define float @test11(float %a) #0 {
 entry:
   %call = tail call float @roundf(float %a) nounwind readnone
@@ -119,9 +117,9 @@ entry:
 
 declare float @roundf(float %a) nounwind readnone
 
-; CHECK: test12
-; CHECK: frintx
+; CHECK-LABEL: test12:
 ; CHECK: frinta
+; CHECK-NOT: frintx
 define double @test12(double %a) #0 {
 entry:
   %call = tail call double @round(double %a) nounwind readnone
@@ -130,7 +128,7 @@ entry:
 
 declare double @round(double %a) nounwind readnone
 
-; CHECK: test13
+; CHECK-LABEL: test13:
 ; CHECK-NOT: frintx
 ; CHECK: frintm
 define float @test13(float %a) #1 {
@@ -139,7 +137,7 @@ entry:
   ret float %call
 }
 
-; CHECK: test14
+; CHECK-LABEL: test14:
 ; CHECK-NOT: frintx
 ; CHECK: frintm
 define double @test14(double %a) #1 {
@@ -148,7 +146,7 @@ entry:
   ret double %call
 }
 
-; CHECK: test15
+; CHECK-LABEL: test15:
 ; CHECK-NOT: frintx
 ; CHECK: frintp
 define float @test15(float %a) #1 {
@@ -157,7 +155,7 @@ entry:
   ret float %call
 }
 
-; CHECK: test16
+; CHECK-LABEL: test16:
 ; CHECK-NOT: frintx
 ; CHECK: frintp
 define double @test16(double %a) #1 {
@@ -166,7 +164,7 @@ entry:
   ret double %call
 }
 
-; CHECK: test17
+; CHECK-LABEL: test17:
 ; CHECK-NOT: frintx
 ; CHECK: frintz
 define float @test17(float %a) #1 {
@@ -175,7 +173,7 @@ entry:
   ret float %call
 }
 
-; CHECK: test18
+; CHECK-LABEL: test18:
 ; CHECK-NOT: frintx
 ; CHECK: frintz
 define double @test18(double %a) #1 {
@@ -184,7 +182,7 @@ entry:
   ret double %call
 }
 
-; CHECK: test19
+; CHECK-LABEL: test19:
 ; CHECK-NOT: frintx
 ; CHECK: frinta
 define float @test19(float %a) #1 {
@@ -193,7 +191,7 @@ entry:
   ret float %call
 }
 
-; CHECK: test20
+; CHECK-LABEL: test20:
 ; CHECK-NOT: frintx
 ; CHECK: frinta
 define double @test20(double %a) #1 {
@@ -202,7 +200,5 @@ entry:
   ret double %call
 }
 
-
-
 attributes #0 = { nounwind }
 attributes #1 = { nounwind "unsafe-fp-math"="true" }