• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=avr | FileCheck %s
2
3define i8 @xor8_reg_reg(i8 %a, i8 %b) {
4; CHECK-LABEL: xor8_reg_reg:
5; CHECK: eor r24, r22
6    %result = xor i8 %a, %b
7    ret i8 %result
8}
9
10define i16 @xor16_reg_reg(i16 %a, i16 %b) {
11; CHECK-LABEL: xor16_reg_reg:
12; CHECK: eor r24, r22
13; CHECK: eor r25, r23
14    %result = xor i16 %a, %b
15    ret i16 %result
16}
17
18define i32 @xor32_reg_reg(i32 %a, i32 %b) {
19; CHECK-LABEL: xor32_reg_reg:
20; CHECK: eor r22, r18
21; CHECK: eor r23, r19
22; CHECK: eor r24, r20
23; CHECK: eor r25, r21
24    %result = xor i32 %a, %b
25    ret i32 %result
26}
27
28define i64 @xor64_reg_reg(i64 %a, i64 %b) {
29; CHECK-LABEL: xor64_reg_reg:
30; CHECK: eor r18, r10
31; CHECK: eor r19, r11
32; CHECK: eor r20, r12
33; CHECK: eor r21, r13
34; CHECK: eor r22, r14
35; CHECK: eor r23, r15
36; CHECK: eor r24, r16
37; CHECK: eor r25, r17
38    %result = xor i64 %a, %b
39    ret i64 %result
40}
41
42