blob: b3413d6b5dce5e74f407d8fa1b2a6a279b90b141 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure this testcase codegens to the eqv instruction
Dan Gohmanda594cf2009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha | grep eqv
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004define i64 @bar(i64 %x, i64 %y) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006 %tmp.1 = xor i64 %x, -1 ; <i64> [#uses=1]
7 %tmp.2 = xor i64 %y, %tmp.1 ; <i64> [#uses=1]
8 ret i64 %tmp.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010