1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64-unknown-unknown | FileCheck %s
4 define i64 @sub1_disguised_constant(i64 %x) {
5 ; CHECK-LABEL: sub1_disguised_constant:
7 ; CHECK-NEXT: sub w8, w0, #1 // =1
8 ; CHECK-NEXT: and w8, w0, w8
9 ; CHECK-NEXT: and x0, x8, #0xffff
11 %a1 = and i64 %x, 65535
12 %a2 = add i64 %x, 65535