Struct byval: fix a copy-paste error for thumb2.
[oota-llvm.git] / test / CodeGen / ARM / fnegs.ll
index c15005e6e8abcd10af39e5b72c4e56226942d2d9..dc4c2e33e491cf13f4a0164ae6ead8c674833924 100644 (file)
@@ -1,6 +1,8 @@
 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
 ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
-; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
+; RUN: llc < %s -mtriple=arm-eabi -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
+; RUN: llc < %s -mtriple=arm-eabi -mcpu=cortex-a8 --enable-unsafe-fp-math | FileCheck %s -check-prefix=CORTEXA8U
+; RUN: llc < %s -mtriple=arm-darwin -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8U
 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s -check-prefix=CORTEXA9
 
 define float @test1(float* %a) {
@@ -12,20 +14,23 @@ entry:
        %retval = select i1 %3, float %1, float %0              ; <float> [#uses=1]
        ret float %retval
 }
-; VFP2: test1:
-; VFP2:        vneg.f32        s1, s0
+; VFP2-LABEL: test1:
+; VFP2:        vneg.f32        s{{.*}}, s{{.*}}
 
-; NFP1: test1:
-; NFP1:        vneg.f32        d1, d0
+; NFP1-LABEL: test1:
+; NFP1:        vneg.f32        d{{.*}}, d{{.*}}
 
-; NFP0: test1:
-; NFP0:        vneg.f32        s1, s0
+; NFP0-LABEL: test1:
+; NFP0:        vneg.f32        s{{.*}}, s{{.*}}
 
-; CORTEXA8: test1:
-; CORTEXA8:    vneg.f32        d1, d0
+; CORTEXA8-LABEL: test1:
+; CORTEXA8:    vneg.f32        s{{.*}}, s{{.*}}
 
-; CORTEXA9: test1:
-; CORTEXA9:    vneg.f32        s1, s0
+; CORTEXA8U-LABEL: test1:
+; CORTEXA8U:   vneg.f32        d{{.*}}, d{{.*}}
+
+; CORTEXA9-LABEL: test1:
+; CORTEXA9:    vneg.f32        s{{.*}}, s{{.*}}
 
 define float @test2(float* %a) {
 entry:
@@ -36,18 +41,21 @@ entry:
        %retval = select i1 %3, float %1, float %0              ; <float> [#uses=1]
        ret float %retval
 }
-; VFP2: test2:
-; VFP2:        vneg.f32        s1, s0
+; VFP2-LABEL: test2:
+; VFP2:        vneg.f32        s{{.*}}, s{{.*}}
+
+; NFP1-LABEL: test2:
+; NFP1:        vneg.f32        d{{.*}}, d{{.*}}
 
-; NFP1: test2:
-; NFP1:        vneg.f32        d1, d0
+; NFP0-LABEL: test2:
+; NFP0:        vneg.f32        s{{.*}}, s{{.*}}
 
-; NFP0: test2:
-; NFP0:        vneg.f32        s1, s0
+; CORTEXA8-LABEL: test2:
+; CORTEXA8:    vneg.f32        s{{.*}}, s{{.*}}
 
-; CORTEXA8: test2:
-; CORTEXA8:    vneg.f32        d1, d0
+; CORTEXA8U-LABEL: test2:
+; CORTEXA8U:   vneg.f32        d{{.*}}, d{{.*}}
 
-; CORTEXA9: test2:
-; CORTEXA9:    vneg.f32        s1, s0
+; CORTEXA9-LABEL: test2:
+; CORTEXA9:    vneg.f32        s{{.*}}, s{{.*}}