1 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
2 ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
4 ; Test add with non-legal types
6 define void @add_i8(i8 %a, i8 %b) nounwind {
9 %a.addr = alloca i8, align 4
12 store i8 %0, ptr %a.addr, align 4
16 define void @add_i8_imm(i8 %a) nounwind {
19 %a.addr = alloca i8, align 4
22 store i8 %0, ptr %a.addr, align 4
26 define void @add_i16(i16 %a, i16 %b) nounwind {
29 %a.addr = alloca i16, align 4
32 store i16 %0, ptr %a.addr, align 4
36 define void @add_i16_imm(i16 %a, i16 %b) nounwind {
39 %a.addr = alloca i16, align 4
42 store i16 %0, ptr %a.addr, align 4
46 ; Test or with non-legal types
48 define void @or_i8(i8 %a, i8 %b) nounwind {
51 %a.addr = alloca i8, align 4
54 store i8 %0, ptr %a.addr, align 4
58 define void @or_i8_imm(i8 %a) nounwind {
61 %a.addr = alloca i8, align 4
64 store i8 %0, ptr %a.addr, align 4
68 define void @or_i16(i16 %a, i16 %b) nounwind {
71 %a.addr = alloca i16, align 4
74 store i16 %0, ptr %a.addr, align 4
78 define void @or_i16_imm(i16 %a) nounwind {
81 %a.addr = alloca i16, align 4
84 store i16 %0, ptr %a.addr, align 4
88 ; Test sub with non-legal types
90 define void @sub_i8(i8 %a, i8 %b) nounwind {
93 %a.addr = alloca i8, align 4
96 store i8 %0, ptr %a.addr, align 4
100 define void @sub_i8_imm(i8 %a) nounwind {
103 %a.addr = alloca i8, align 4
106 store i8 %0, ptr %a.addr, align 4
110 define void @sub_i16(i16 %a, i16 %b) nounwind {
113 %a.addr = alloca i16, align 4
116 store i16 %0, ptr %a.addr, align 4
120 define void @sub_i16_imm(i16 %a) nounwind {
123 %a.addr = alloca i16, align 4
124 %0 = sub i16 %a, 247;
126 store i16 %0, ptr %a.addr, align 4
130 define void @sub_i16_badimm(i16 %a) nounwind {
133 %a.addr = alloca i16, align 4
134 %0 = sub i16 %a, -32768;
136 store i16 %0, ptr %a.addr, align 4