Skip to content

Commit 72afdd8

Browse files
committed
Add test expectation
1 parent d6a2019 commit 72afdd8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

llvm/test/CodeGen/WebAssembly/removed-terminator.ll

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
; RUN: llc -O0 < %s
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc -O0 -verify-machineinstrs < %s | FileCheck %s
23

34
target triple = "wasm32-unknown-unknown"
45

56
define void @test(i1 %x) {
7+
; CHECK-LABEL: test:
8+
; CHECK: .functype test (i32) -> ()
9+
; CHECK-NEXT: # %bb.0:
10+
; CHECK-NEXT: local.get 0
11+
; CHECK-NEXT: i32.const -1
12+
; CHECK-NEXT: i32.xor
13+
; CHECK-NEXT: i32.const 1
14+
; CHECK-NEXT: i32.and
15+
; CHECK-NEXT: drop
16+
; CHECK-NEXT: # %bb.1: # %exit
17+
; CHECK-NEXT: return
618
%y = xor i1 %x, true
719
; This br_if's operand (%y) is stackified in RegStackify. But this terminator
820
; will be removed in CFGSort after that. We need to make sure we unstackify %y

0 commit comments

Comments
 (0)