diff options
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index d810e188c8..4db7db977e 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -180,3 +180,10 @@ uint %test25(uint %tmp.2, uint %AA) { ret uint %tmp.6 } +int %test26(uint %A) { ;; handle casts between shifts. + %B = shr uint %A, ubyte 1 + %C = cast uint %B to int + %D = shl int %C, ubyte 1 + ret int %D +} + |