summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
blob: 85c1f915940064cfabc5f7804434aa1e97e5df77 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep lshr
; Verify this is not turned into -1.

int %test(ubyte %amt) {
  %B = lshr int -1, ubyte %amt
  ret int %B
}