summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-27 22:41:55 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-27 22:41:55 +0000
commit406c471b69f2d079582b6d09a752d96e826f0535 (patch)
treea8aa50b3ecc2519f5d08759498ba8978b42b6eeb /llvm/test/CodeGen
parent121d27e9e432a6a59f1bf5c3d4b013cf482a53ce (diff)
downloadbcm5719-llvm-406c471b69f2d079582b6d09a752d96e826f0535.tar.gz
bcm5719-llvm-406c471b69f2d079582b6d09a752d96e826f0535.zip
Make the fast-isel code for literal 0.0 a bit shorter/faster, since 0.0 is common. rdar://problem/9303592 .
llvm-svn: 130338
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-x86-64.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
index d45a54fb142..e5f1a7c1660 100644
--- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll
@@ -225,3 +225,16 @@ if.else: ; preds = %entry
; CHECK-NEXT: je
}
+; Check that 0.0 is materialized using pxor
+define void @test18(float* %p1) {
+ store float 0.0, float* %p1
+ ret void
+; CHECK: test18:
+; CHECK: pxor
+}
+define void @test19(double* %p1) {
+ store double 0.0, double* %p1
+ ret void
+; CHECK: test19:
+; CHECK: pxor
+}
OpenPOWER on IntegriCloud