aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/remat-constant.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/remat-constant.ll')
-rw-r--r--test/CodeGen/X86/remat-constant.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/remat-constant.ll b/test/CodeGen/X86/remat-constant.ll
new file mode 100644
index 0000000000..eb12c312e9
--- /dev/null
+++ b/test/CodeGen/X86/remat-constant.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static | grep xmm | count 2
+
+declare void @bar() nounwind
+
+@a = external constant float
+
+declare void @qux(float %f) nounwind
+
+define void @foo() nounwind {
+ %f = load float* @a
+ call void @bar()
+ call void @qux(float %f)
+ call void @qux(float %f)
+ ret void
+}