1 ; RUN: llc -march=msp430 < %s | FileCheck %s
2 target datalayout = "e-p:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:16:32"
3 target triple = "msp430-generic-generic"
5 define i16 @sccweqand(i16 %a, i16 %b) nounwind {
7 %t2 = icmp eq i16 %t1, 0
8 %t3 = zext i1 %t2 to i16
11 ; CHECK-LABEL: sccweqand:
17 define i16 @sccwneand(i16 %a, i16 %b) nounwind {
19 %t2 = icmp ne i16 %t1, 0
20 %t3 = zext i1 %t2 to i16
23 ; CHECK-LABEL: sccwneand:
28 define i16 @sccwne(i16 %a, i16 %b) nounwind {
29 %t1 = icmp ne i16 %a, %b
30 %t2 = zext i1 %t1 to i16
40 define i16 @sccweq(i16 %a, i16 %b) nounwind {
41 %t1 = icmp eq i16 %a, %b
42 %t2 = zext i1 %t1 to i16
51 define i16 @sccwugt(i16 %a, i16 %b) nounwind {
52 %t1 = icmp ugt i16 %a, %b
53 %t2 = zext i1 %t1 to i16
56 ; CHECK-LABEL:sccwugt:
61 define i16 @sccwuge(i16 %a, i16 %b) nounwind {
62 %t1 = icmp uge i16 %a, %b
63 %t2 = zext i1 %t1 to i16
66 ; CHECK-LABEL:sccwuge:
71 define i16 @sccwult(i16 %a, i16 %b) nounwind {
72 %t1 = icmp ult i16 %a, %b
73 %t2 = zext i1 %t1 to i16
76 ; CHECK-LABEL:sccwult:
81 define i16 @sccwule(i16 %a, i16 %b) nounwind {
82 %t1 = icmp ule i16 %a, %b
83 %t2 = zext i1 %t1 to i16
86 ; CHECK-LABEL:sccwule:
91 define i16 @sccwsgt(i16 %a, i16 %b) nounwind {
92 %t1 = icmp sgt i16 %a, %b
93 %t2 = zext i1 %t1 to i16
97 define i16 @sccwsge(i16 %a, i16 %b) nounwind {
98 %t1 = icmp sge i16 %a, %b
99 %t2 = zext i1 %t1 to i16
103 define i16 @sccwslt(i16 %a, i16 %b) nounwind {
104 %t1 = icmp slt i16 %a, %b
105 %t2 = zext i1 %t1 to i16
109 define i16 @sccwsle(i16 %a, i16 %b) nounwind {
110 %t1 = icmp sle i16 %a, %b
111 %t2 = zext i1 %t1 to i16