summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/apint-cast-and-cast.ll
blob: 337fd7c2d722d83ceacccef26d1c44a962b4c0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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
}
OpenPOWER on IntegriCloud