blob: 2344833dc5b363ef0a7637254032eea212207d01 [file] [log] [blame]
Andrew Lenharthbd7c22c2006-02-13 18:52:01 +00001; Make sure this testcase codegens to the zapnot instruction
Tanya Lattner53a66d12008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
Andrew Lenharthbd7c22c2006-02-13 18:52:01 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004define i64 @foo(i64 %y) {
Andrew Lenharthbd7c22c2006-02-13 18:52:01 +00005entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +00006 %tmp = lshr i64 %y, 3 ; <i64> [#uses=1]
7 %tmp2 = and i64 %tmp, 8191 ; <i64> [#uses=1]
8 ret i64 %tmp2
Andrew Lenharthbd7c22c2006-02-13 18:52:01 +00009}
10