xref: /llvm-project/llvm/test/CodeGen/MIR/WebAssembly/typed-immediate-operand-invalid1.mir (revision 3414bce07aa11458971608de99c64d0c76aa3e0b)
1# RUN: not llc -mtriple=wasm32-unknown-unknown -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2# When a typed immediate operand does not start with 'i', 's', or 'p'
3---
4name: test_typed_immediate_operand_invalid1
5liveins:
6  - { reg: '$arguments' }
7body: |
8  bb.0:
9    liveins: $arguments
10    ; CHECK: [[@LINE+1]]:24: a typed immediate operand should start with one of 'i', 's', or 'p'
11    %0:i32 = CONST_I32 abc 0, implicit-def dead $arguments
12    RETURN implicit-def dead $arguments
13...
14