1 # RUN: not --crash llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures that the address is checked in machine verifier.
6 tracksRegLiveness: true
9 successors: %bb.1(0x80000000)
17 successors: %bb.1(0x80000000)
20 %4:vr128 = VPSLLDri %2, 31
21 %5:vr256 = VPMOVSXDQYrr killed %4
22 %8:vr256 = IMPLICIT_DEF
23 ; CHECK: *** Bad machine code: Scale factor in address must be 1, 2, 4 or 8 ***
24 %6:vr256, %7:vr256 = VGATHERQPDYrm %3, %0, 16, killed %8, 0, $noreg, %5 :: (load unknown-size, align 8)
25 %9:vr128 = COPY %6.sub_xmm
26 ; CHECK: *** Bad machine code: Displacement in address must fit into 32-bit signed integer ***
27 VMOVLPDmr $noreg, 1, $noreg, 1111111111111, $noreg, killed %9 :: (store (s64) into `i64* undef`)
29 ; CHECK: LLVM ERROR: Found 2 machine code errors