xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/fast-isel-agg-constant.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1; RUN: llc < %s -march=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