1 # REQUIRES: aarch64-registered-target
2 # RUN: not --crash llc -verify-machineinstrs -mtriple aarch64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
9 %1:_(<4 x s16>) = COPY $x0
12 ; CHECK: *** Bad machine code: G_ASSERT_SEXT expects an immediate operand #2 ***
13 ; CHECK: instruction: %assert_sext_1:_(s64) = G_ASSERT_SEXT
14 %assert_sext_1:_(s64) = G_ASSERT_SEXT %0, %0
16 ; CHECK: *** Bad machine code: G_ASSERT_SEXT expects an immediate operand #2 ***
17 ; CHECK: instruction: %assert_sext_2:_(s64) = G_ASSERT_SEXT
18 %assert_sext_2:_(s64) = G_ASSERT_SEXT %0, i8 8
20 ; CHECK: *** Bad machine code: Type mismatch in generic instruction ***
21 ; CHECK: instruction: %assert_sext_3:_(<2 x s32>) = G_ASSERT_SEXT
22 %assert_sext_3:_(<2 x s32>) = G_ASSERT_SEXT %0, 8
24 ; CHECK: *** Bad machine code: Type mismatch in generic instruction ***
25 ; CHECK: instruction: %assert_sext_4:_(<2 x s32>) = G_ASSERT_SEXT
26 %assert_sext_4:_(<2 x s32>) = G_ASSERT_SEXT %1, 8
28 ; CHECK: *** Bad machine code: G_ASSERT_SEXT size must be >= 1 ***
29 ; CHECK: instruction: %assert_sext_5:_(s64) = G_ASSERT_SEXT
30 %assert_sext_5:_(s64) = G_ASSERT_SEXT %0, 0
32 ; CHECK: *** Bad machine code: G_ASSERT_SEXT size must be less than source bit width ***
33 ; CHECK: instruction: %assert_sext_6:_(s64) = G_ASSERT_SEXT
34 %assert_sext_6:_(s64) = G_ASSERT_SEXT %0, 128
36 ; CHECK: *** Bad machine code: Type mismatch in generic instruction ***
37 ; CHECK: instruction: %assert_sext_7:_(s64) = G_ASSERT_SEXT %2:_, 8
38 %assert_sext_7:_(s64) = G_ASSERT_SEXT %2, 8
40 ; CHECK: *** Bad machine code: Generic instruction cannot have physical register ***
41 ; CHECK: instruction: %assert_sext_8:_(s64) = G_ASSERT_SEXT $x0, 8
42 %assert_sext_8:_(s64) = G_ASSERT_SEXT $x0, 8