1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu -o - | FileCheck %s
4 source_filename = "<stdin>"
5 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
6 target triple = "aarch64-unknown-linux-gnu"
8 define i32 @Orlshr(i32 %e) {
10 ; CHECK: // %bb.0: // %entry
11 ; CHECK-NEXT: orr w8, w0, w0, lsr #15
12 ; CHECK-NEXT: orr w8, w8, w8, lsr #15
13 ; CHECK-NEXT: orr w8, w8, w8, lsr #15
14 ; CHECK-NEXT: orr w0, w8, w8, lsr #15
17 %shr = lshr i32 %e, 15
19 %shr.1 = lshr i32 %or, 15
20 %or.1 = or i32 %shr.1, %or
21 %shr.2 = lshr i32 %or.1, 15
22 %or.2 = or i32 %shr.2, %or.1
23 %shr.3 = lshr i32 %or.2, 15
24 %or.3 = or i32 %shr.3, %or.2
28 define i32 @Orshl(i32 %e) {
30 ; CHECK: // %bb.0: // %entry
31 ; CHECK-NEXT: orr w8, w0, w0, lsl #15
32 ; CHECK-NEXT: orr w8, w8, w8, lsl #15
33 ; CHECK-NEXT: orr w8, w8, w8, lsl #15
34 ; CHECK-NEXT: orr w0, w8, w8, lsl #15
39 %shl.1 = shl i32 %or, 15
40 %or.1 = or i32 %shl.1, %or
41 %shl.2 = shl i32 %or.1, 15
42 %or.2 = or i32 %shl.2, %or.1
43 %shl.3 = shl i32 %or.2, 15
44 %or.3 = or i32 %shl.3, %or.2