diff options
Diffstat (limited to 'test/CodeGen/X86/fast-isel-trunc.ll')
-rw-r--r-- | test/CodeGen/X86/fast-isel-trunc.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-trunc.ll b/test/CodeGen/X86/fast-isel-trunc.ll new file mode 100644 index 0000000000000..039f114737bb1 --- /dev/null +++ b/test/CodeGen/X86/fast-isel-trunc.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=x86 -fast-isel -fast-isel-abort +; RUN: llvm-as < %s | llc -march=x86-64 -fast-isel -fast-isel-abort + +define i8 @t1(i32 %x) signext nounwind { + %tmp1 = trunc i32 %x to i8 + ret i8 %tmp1 +} + +define i8 @t2(i16 signext %x) signext nounwind { + %tmp1 = trunc i16 %x to i8 + ret i8 %tmp1 +} |