From ea8b07ee6badc731c52a0e1668c7a8eacf9a3b1d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 23 Mar 2007 20:48:34 +0000 Subject: Add test case for testing InstCombine with arbitrary precision integer types. These tests mimic the integer test cases in the normal InstCombine test suite but use "strange" integer bit widths. Most tests written by Zhou Sheng, a few by me. llvm-svn: 35284 --- llvm/test/Transforms/InstCombine/apint-shl-trunc.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 llvm/test/Transforms/InstCombine/apint-shl-trunc.ll (limited to 'llvm/test/Transforms/InstCombine/apint-shl-trunc.ll') diff --git a/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll b/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll new file mode 100644 index 00000000000..cf5b1f86834 --- /dev/null +++ b/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis > /tmp/sht.rel && +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl + +define i1 @test0(i39 %X, i39 %A) { + %B = lshr i39 %X, %A + %D = trunc i39 %B to i1 + ret i1 %D +} + +define i1 @test1(i799 %X, i799 %A) { + %B = lshr i799 %X, %A + %D = trunc i799 %B to i1 + ret i1 %D +} -- cgit v1.2.3