view test/MC/Mips/macro-bcc-imm-bad.s @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents afa8332a0e37
children
line wrap: on
line source

# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>&1 | \
# RUN:     FileCheck %s --check-prefix=ALL

    .text
    .set noat
foo:
    blt $a2, 16, foo # ALL: :[[@LINE]]:5: error: pseudo-instruction requires $at, which is not available
    .set at
    .set noreorder
    .set nomacro
    blt $a2, 16, foo # ALL: :[[@LINE]]:5: warning: macro instruction expanded into multiple instructions
                     # ALL-NOT: :[[@LINE-1]]:5: warning: macro instruction expanded into multiple instructions