1 ; RUN: llc < %s -march=avr | FileCheck %s
3 ; Tests for the exclusive OR operation.
5 define i8 @eor8_reg_reg(i8 %a, i8 %b) {
6 ; CHECK-LABEL: eor8_reg_reg:
8 %result = xor i8 %a, %b
12 define i8 @eor8_reg_imm(i8 %a) {
13 ; CHECK-LABEL: eor8_reg_imm:
16 %result = xor i8 %a, 5
20 define i16 @eor16_reg_reg(i16 %a, i16 %b) {
21 ; CHECK-LABEL: eor16_reg_reg:
24 %result = xor i16 %a, %b
28 define i16 @eor16_reg_imm(i16 %a) {
29 ; CHECK-LABEL: eor16_reg_imm:
34 %result = xor i16 %a, 1234
38 define i32 @eor32_reg_reg(i32 %a, i32 %b) {
39 ; CHECK-LABEL: eor32_reg_reg:
44 %result = xor i32 %a, %b
48 define i32 @eor32_reg_imm(i32 %a) {
49 ; CHECK-LABEL: eor32_reg_imm:
54 %result = xor i32 %a, 1234
58 define i64 @eor64_reg_reg(i64 %a, i64 %b) {
59 ; CHECK-LABEL: eor64_reg_reg:
68 %result = xor i64 %a, %b
72 define i64 @eor64_reg_imm(i64 %a) {
73 ; CHECK-LABEL: eor64_reg_imm:
90 %result = xor i64 %a, 17446744073709551613