aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AArch64/combine-and-like.ll
blob: ea1359b300620cb54b4b5e01d6aa558b7ca8f1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=aarch64-unknown-unknown | FileCheck %s

define i32 @f(i32 %a0) {
; CHECK-LABEL: f:
; CHECK:       // %bb.0:
; CHECK-NEXT:    ret
  %1 = lshr i32 %a0, 2147483647
  %2 = add i32 %1, 2147483647
  %3 = and i32 %2, %1
  ret i32 %3
}