summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/win_cst_pool.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/win_cst_pool.ll b/llvm/test/CodeGen/X86/win_cst_pool.ll
index 199557dac20..77c37b4d348 100644
--- a/llvm/test/CodeGen/X86/win_cst_pool.ll
+++ b/llvm/test/CodeGen/X86/win_cst_pool.ll
@@ -64,3 +64,16 @@ define <4 x float> @undef1() {
; CHECK: movaps __xmm@00000000000000003f8000003f800000(%rip), %xmm0
; CHECK-NEXT: ret
}
+
+define float @pr23966(i32 %a) {
+ %tobool = icmp ne i32 %a, 0
+ %sel = select i1 %tobool, float -1.000000e+00, float 1.000000e+00
+ ret float %sel
+}
+
+; CHECK: .globl __real@bf8000003f800000
+; CHECK-NEXT: .section .rdata,"dr",discard,__real@bf8000003f800000
+; CHECK-NEXT: .align 4
+; CHECK-NEXT: __real@bf8000003f800000:
+; CHECK-NEXT: .long 1065353216
+; CHECK-NEXT: .long 3212836864
OpenPOWER on IntegriCloud