llvm-6502/test/CodeGen/X86/remat-constant.ll
Evan Cheng 424f8f339a For Darwin / x86_64, override -relocation-model=static to pic if the output is assembly since Darwin assembler does not really support -static codeine.
I view this as a temporary workaround until the assembler / linker changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72806 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-03 21:13:54 +00:00

16 lines
351 B
LLVM

; RUN: llvm-as < %s | llc -mtriple=x86_64-linux -relocation-model=static -aggressive-remat | 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
}