Skip to content

Commit 6f794b3

Browse files
committed
[DAG] Precommit test case for or disjoint flag.
1 parent eaa6cc5 commit 6f794b3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2+
; RUN: llc -mtriple=aarch64-none-eabi -verify-machineinstrs %s -start-before=aarch64-isel -o - | FileCheck %s
3+
4+
define i32 @test(i32 %a) {
5+
; CHECK-LABEL: test:
6+
; CHECK: // %bb.0: // %entry
7+
; CHECK-NEXT: add w8, w0, #1
8+
; CHECK-NEXT: orr w0, w8, #0xc0
9+
; CHECK-NEXT: ret
10+
entry:
11+
%add = add i32 %a, 1
12+
%or1 = or disjoint i32 %add, 64
13+
%or = or disjoint i32 %or1, 128
14+
ret i32 %or
15+
}

0 commit comments

Comments
 (0)