1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
4 ; Test using bitwise logic on icmp operands instead of i1 logic when
7 define i32 @fun(ptr %Src) {
9 ; CHECK: # %bb.0: # %bb
10 ; CHECK-NEXT: lhi %r0, -2
11 ; CHECK-NEXT: s %r0, 0(%r2)
12 ; CHECK-NEXT: nill %r0, 65533
13 ; CHECK-NEXT: chi %r0, 0
14 ; CHECK-NEXT: lhi %r2, 0
15 ; CHECK-NEXT: lochilh %r2, 1
18 %i = load i32, ptr %Src
19 %i3 = sub nsw i32 0, %i
20 %i4 = icmp ne i32 %i3, 2
21 %i5 = icmp ne i32 %i3, 4
23 %i7 = zext i1 %i6 to i32