brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 7d94ca9 Raw
63 lines · plain
1# RUN: rm -rf %t && split-file %s %t && cd %t2# RUN: llvm-mc -triple=x86_64 --disassemble --hex a.s | FileCheck %s3# RUN: llvm-mc -triple=x86_64 --disassemble --hex decode1.s 2>&1 | FileCheck %s --check-prefix=DECODE1 --implicit-check-not=warning:4# RUN: not llvm-mc -triple=x86_64 --disassemble --hex decode2.s 2>&1 | FileCheck %s --check-prefix=DECODE2 --implicit-check-not=warning:5# RUN: not llvm-mc -triple=x86_64 --disassemble --hex err1.s 2>&1 | FileCheck %s --check-prefix=ERR1 --implicit-check-not=error:6# RUN: not llvm-mc -triple=x86_64 --disassemble --hex err2.s 2>&1 | FileCheck %s --check-prefix=ERR2 --implicit-check-not=error:7 8#--- a.s94883ec08 31  # comment10# comment11	ed4829 c39012[c3c3][4829c3]13[90]14 15# CHECK:      subq $8, %rsp16# CHECK-NEXT: xorl %ebp, %ebp17# CHECK-NEXT: subq %rax, %rbx18# CHECK-NEXT: nop19# CHECK-NEXT: retq20# CHECK-NEXT: retq21# CHECK-NEXT: subq %rax, %rbx22# CHECK-NEXT: nop23# CHECK-EMPTY:24 25#--- decode1.s26488927 28# DECODE1: 1:1: warning: invalid instruction encoding29 30#--- decode2.s31[4889][4889] [4889]4889c332	[4889]33 34# DECODE2: 1:2: warning: invalid instruction encoding35# DECODE2: 1:8: warning: invalid instruction encoding36# DECODE2: 1:15: warning: invalid instruction encoding37# DECODE2: 2:3: warning: invalid instruction encoding38 39#--- err1.s400x31ed410xcc42g043 44# ERR1:      1:1: error: invalid input token45# ERR1:      2:1: error: invalid input token46# ERR1:      3:1: error: invalid input token47# ERR1:      xorl %ebp, %ebp48# ERR1-NEXT: int349# ERR1-EMPTY:50 51#--- err2.s52g5390c54cc55c56 57# ERR2:      1:1: error: expected two hex digits58# ERR2:      2:3: error: expected two hex digits59# ERR2:      4:1: error: expected two hex digits60# ERR2:      nop61# ERR2-NEXT: int362# ERR2-EMPTY:63