Home | History | Annotate | Download | only in SystemZ
      1 ; RUN: llc < %s -march=systemz | grep xilf  | count 9
      2 ; RUN: llc < %s -march=systemz | grep llgfr | count 3
      3 ; RUN: llc < %s -march=systemz | grep lgfr  | count 6
      4 
      5 define i32 @foo1(i32 %a, i32 %b) {
      6 entry:
      7     %c = xor i32 %a, 1
      8     ret i32 %c
      9 }
     10 
     11 define i32 @foo2(i32 %a, i32 %b) {
     12 entry:
     13     %c = xor i32 %a, 131072
     14     ret i32 %c
     15 }
     16 
     17 define i32 @foo7(i32 %a, i32 %b) {
     18 entry:
     19     %c = xor i32 %a, 123456
     20     ret i32 %c
     21 }
     22 
     23 define zeroext i32 @foo3(i32 %a, i32 %b)  {
     24 entry:
     25     %c = xor i32 %a, 1
     26     ret i32 %c
     27 }
     28 
     29 define zeroext i32 @foo8(i32 %a, i32 %b)  {
     30 entry:
     31     %c = xor i32 %a, 123456
     32     ret i32 %c
     33 }
     34 
     35 define signext i32 @foo4(i32 %a, i32 %b)  {
     36 entry:
     37     %c = xor i32 %a, 131072
     38     ret i32 %c
     39 }
     40 
     41 define zeroext i32 @foo5(i32 %a, i32 %b)  {
     42 entry:
     43     %c = xor i32 %a, 1
     44     ret i32 %c
     45 }
     46 
     47 define signext i32 @foo6(i32 %a, i32 %b)  {
     48 entry:
     49     %c = xor i32 %a, 131072
     50     ret i32 %c
     51 }
     52 
     53 define signext i32 @foo9(i32 %a, i32 %b)  {
     54 entry:
     55     %c = xor i32 %a, 123456
     56     ret i32 %c
     57 }
     58 
     59