We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c455f4a commit 979aca0Copy full SHA for 979aca0
llvm/test/CodeGen/AArch64/instruct-neg.ll
@@ -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