2006-02-14 02:52:01 +08:00
|
|
|
; Make sure this testcase codegens to the zapnot instruction
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=alpha | grep zapnot
|
2006-02-14 02:52:01 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i64 @foo(i64 %y) {
|
2006-02-14 02:52:01 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp = lshr i64 %y, 3 ; <i64> [#uses=1]
|
|
|
|
%tmp2 = and i64 %tmp, 8191 ; <i64> [#uses=1]
|
|
|
|
ret i64 %tmp2
|
2006-02-14 02:52:01 +08:00
|
|
|
}
|
|
|
|
|