Skip to content

Commit 979aca0

Browse files
committed
Pre-commit test (NFC)
1 parent c455f4a commit 979aca0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc -mtriple=aarch64-linux-gnu -O0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK
3+
4+
define i32 @negb(i32 %b) {
5+
; CHECK-LABEL: negb:
6+
; CHECK: // %bb.0:
7+
; CHECK-NEXT: mov w8, wzr
8+
; CHECK-NEXT: sub w0, w8, w0
9+
; CHECK-NEXT: ret
10+
%sub = sub nsw i32 0, %b
11+
ret i32 %sub
12+
}

0 commit comments

Comments
 (0)