xref: /llvm-project/llvm/test/CodeGen/X86/expand-integer-x86_64-intrinsic-error.ll (revision 4ad76852584480b646d1ce360202e18591ea8938)
1; RUN: not --crash llc < %s -mtriple=i686-unknown-unknown -mattr=sse2 2>&1 | FileCheck %s --check-prefix=CHECK
2
3; Make sure we generate fatal error from the type legalizer for using a 64-bit
4; mode intrinsics in 32-bit mode. We used to use an llvm_unreachable.
5
6; CHECK: LLVM ERROR: Do not know how to expand the result of this operator!
7define i64 @test_x86_sse2_cvtsd2si64(<2 x double> %a0) {
8  %res = call i64 @llvm.x86.sse2.cvtsd2si64(<2 x double> %a0) ; <i64> [#uses=1]
9  ret i64 %res
10}
11declare i64 @llvm.x86.sse2.cvtsd2si64(<2 x double>) nounwind readnone
12