1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=s390x-ibm-linux -mcpu=z10 | FileCheck %s
4 @g_0 = external dso_local local_unnamed_addr global i16, align 2
5 @g_1 = external dso_local local_unnamed_addr global i32, align 4
6 @g_2 = external dso_local local_unnamed_addr global i32, align 4
11 ; CHECK-NEXT: lhi %r0, 41
12 ; CHECK-NEXT: strl %r0, g_1
13 ; CHECK-NEXT: lhi %r0, 0
14 ; CHECK-NEXT: strl %r0, g_2
16 store i32 41, ptr @g_1, align 4
17 %1 = load i32, ptr @g_1, align 4
18 %2 = load i16, ptr @g_0, align 2
19 %3 = zext i16 %2 to i32
21 %5 = zext i32 %4 to i64
23 %7 = ashr exact i64 %6, 48
25 %9 = sext i32 %1 to i64
26 %10 = icmp sge i64 %8, %9
27 %11 = zext i1 %10 to i32
29 store i32 %12, ptr @g_2, align 4