mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
74d3f50a80
globals. This implements remat-constant.ll even without aggressive-remat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74373 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
333 B
LLVM
16 lines
333 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=x86_64-linux -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
|
|
}
|