xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/remat-constant.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | grep xmm | count 2
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdeclare void @bar() nounwind
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker@a = external constant float
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdeclare void @qux(float %f) nounwind
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind  {
10*9880d681SAndroid Build Coastguard Worker  %f = load float, float* @a
11*9880d681SAndroid Build Coastguard Worker  call void @bar()
12*9880d681SAndroid Build Coastguard Worker  call void @qux(float %f)
13*9880d681SAndroid Build Coastguard Worker  call void @qux(float %f)
14*9880d681SAndroid Build Coastguard Worker  ret void
15*9880d681SAndroid Build Coastguard Worker}
16