1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu | FileCheck %s 3 4define i32 @f(i32 %x) { 5; CHECK-LABEL: f: 6; CHECK: // %bb.0: 7; CHECK-NEXT: orr w8, w0, #0x1 8; CHECK-NEXT: extr w8, w8, w0, #27 9; CHECK-NEXT: and w0, w8, #0xffffffe1 10; CHECK-NEXT: ret 11 %or1 = or i32 %x, 1 12 %sh1 = shl i32 %or1, 5 13 %sh2 = lshr i32 %x, 27 14 %1 = and i32 %sh2, 1 15 %r = or i32 %sh1, %1 16 ret i32 %r 17} 18