brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 2040c27 Raw
52 lines · plain
1# XFAIL: system-windows2# Darwin uses the legacy behavior of reporting abridged ftag value,3# it is covered by TestRegisters.py::fp_special_purpose_register_read.4# XFAIL: system-darwin5# REQUIRES: native && (target-x86 || target-x86_64)6# RUN: %clangxx_host %p/Inputs/x86-fp-write.cpp -o %t7# RUN: %lldb -b -s %s %t | FileCheck %s8process launch9 10register write fctrl 0x037b11register write fstat 0x888412# note: this needs to enable all registers for writes to be effective13register write ftag 0x2a5814register write fop 0x003315# the exact addresses do not matter, we want just to verify FXSAVE16# note: segment registers are not supported on all CPUs17register write fioff 0x89abcdef18register write fooff 0x7654321019 20register write st0 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x00 0x40}"21register write st1 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x3f 0x00 0x00}"22register write st2 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}"23register write st3 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80}"24register write st4 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0x7f}"25register write st5 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0xff}"26register write st6 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc0 0xff 0xff}"27register write st7 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}"28 29process continue30 31# CHECK: process continue32# CHECK-DAG: fctrl = 0x037b33# CHECK-DAG: fstat = 0x888434# CHECK-DAG: ftag = 0xa96135# CHECK-DAG: fop = 0x003336 37# This test is run both on 32-bit and 64-bit systems, in order to test38# that fioff/fooff setting works as well as fip/fdp.39# CHECK-DAG: fip = 0x{{(00000000)?}}89abcdef40# CHECK-DAG: fdp = 0x{{(00000000)?}}7654321041 42# CHECK-DAG: st0 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x00 0x40 }43# CHECK-DAG: st1 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x3f 0x00 0x00 }44# CHECK-DAG: st2 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 }45# CHECK-DAG: st3 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 }46# CHECK-DAG: st4 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0x7f }47# CHECK-DAG: st5 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0xff }48# CHECK-DAG: st6 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc0 0xff 0xff }49# CHECK-DAG: st7 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 }50 51# CHECK: Process {{[0-9]+}} exited with status = 052