mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
5d787bb93e
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35284 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
338 B
LLVM
16 lines
338 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
|
|
|
|
define i19 @test1(i43 %val) {
|
|
%t1 = bitcast i43 %val to i43
|
|
%t2 = and i43 %t1, 1
|
|
%t3 = trunc i43 %t2 to i19
|
|
ret i19 %t3
|
|
}
|
|
|
|
define i73 @test2(i677 %val) {
|
|
%t1 = bitcast i677 %val to i677
|
|
%t2 = and i677 %t1, 1
|
|
%t3 = trunc i677 %t2 to i73
|
|
ret i73 %t3
|
|
}
|