File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
llvm/test/CodeGen/WebAssembly Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 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
34target triple = "wasm32-unknown-unknown"
45
56define 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
You can’t perform that action at this time.
0 commit comments