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