xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/fast-isel-agg-constant.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86-64 -O0 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; Make sure fast-isel doesn't screw up aggregate constants.
3*9880d681SAndroid Build Coastguard Worker; (Failing out is okay, as long as we don't miscompile.)
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker%bar = type { i32 }
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine i32 @foo()  {
8*9880d681SAndroid Build Coastguard Worker  %tmp = extractvalue %bar { i32 3 }, 0
9*9880d681SAndroid Build Coastguard Worker  ret i32 %tmp
10*9880d681SAndroid Build Coastguard Worker; CHECK: movl $3, %eax
11*9880d681SAndroid Build Coastguard Worker}
12