summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-12-08 02:37:48 +0000
committerJustin Bogner <mail@justinbogner.com>2015-12-08 02:37:48 +0000
commit3135ba9b381aa010a98c7a3b48c9d2338783d480 (patch)
tree2bd4ad552f85f109a481a81e7607b2f9e0917db7 /llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll
parenta98a3be2c49c04bca67a65a46d8e5fa65adc0f68 (diff)
downloadbcm5719-llvm-3135ba9b381aa010a98c7a3b48c9d2338783d480.tar.gz
bcm5719-llvm-3135ba9b381aa010a98c7a3b48c9d2338783d480.zip
AsmPrinter: Use emitGlobalConstantFP to emit elements of constant data
It's strange to duplicate the logic for emitting FP values into emitGlobalConstantDataSequential, and it's even stranger that we end up printing the verbose assembly comments differently between the two paths. Just call into emitGlobalConstantFP rather than crudely duplicating its logic. llvm-svn: 254988
Diffstat (limited to 'llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll')
-rw-r--r--llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll b/llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll
index 248a9202e99..99b27efe7f5 100644
--- a/llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll
+++ b/llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll
@@ -39,10 +39,10 @@ define void @foo1(<4 x float> %val, <4 x float> %test, <4 x double>* %p) nounwin
; Also test the general purpose constant folding of int->fp.
define void @foo2(<4 x float>* noalias %result) nounwind {
; CHECK-LABEL: LCPI2_0:
-; CHECK-NEXT: .long 1082130432 ## float 4.000000e+00
-; CHECK-NEXT: .long 1084227584 ## float 5.000000e+00
-; CHECK-NEXT: .long 1086324736 ## float 6.000000e+00
-; CHECK-NEXT: .long 1088421888 ## float 7.000000e+00
+; CHECK-NEXT: .long 1082130432 ## float 4
+; CHECK-NEXT: .long 1084227584 ## float 5
+; CHECK-NEXT: .long 1086324736 ## float 6
+; CHECK-NEXT: .long 1088421888 ## float 7
; CHECK-LABEL: foo2:
; CHECK: movaps LCPI2_0(%rip), %xmm0
@@ -72,10 +72,10 @@ define <4 x float> @foo3(<4 x float> %val, <4 x float> %test) nounwind {
; Test the general purpose constant folding of uint->fp.
define void @foo4(<4 x float>* noalias %result) nounwind {
; CHECK-LABEL: LCPI4_0:
-; CHECK-NEXT: .long 1065353216 ## float 1.000000e+00
-; CHECK-NEXT: .long 1123942400 ## float 1.270000e+02
-; CHECK-NEXT: .long 1124073472 ## float 1.280000e+02
-; CHECK-NEXT: .long 1132396544 ## float 2.550000e+02
+; CHECK-NEXT: .long 1065353216 ## float 1
+; CHECK-NEXT: .long 1123942400 ## float 127
+; CHECK-NEXT: .long 1124073472 ## float 128
+; CHECK-NEXT: .long 1132396544 ## float 255
; CHECK-LABEL: foo4:
; CHECK: movaps LCPI4_0(%rip), %xmm0
OpenPOWER on IntegriCloud