brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · cbfb6c6 Raw
50 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_646# 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: fxrstor64 apparently truncates this to 48 bits, and sign extends17#       the highest bits, so let's keep the value safely below18register write fip 0x0000056789abcdef19register write fdp 0x00000a987654321020 21register write st0 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x00 0x40}"22register write st1 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x3f 0x00 0x00}"23register write st2 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}"24register write st3 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80}"25register write st4 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0x7f}"26register write st5 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0xff}"27register write st6 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc0 0xff 0xff}"28register write st7 "{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}"29 30process continue31 32# CHECK: process continue33# CHECK-DAG: fctrl = 0x037b34# CHECK-DAG: fstat = 0x888435# CHECK-DAG: ftag = 0xa96136# CHECK-DAG: fop = 0x003337# CHECK-DAG: fip = 0x0000056789abcdef38# CHECK-DAG: fdp = 0x00000a987654321039 40# CHECK-DAG: st0 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x00 0x40 }41# CHECK-DAG: st1 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x3f 0x00 0x00 }42# CHECK-DAG: st2 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 }43# CHECK-DAG: st3 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 }44# CHECK-DAG: st4 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0x7f }45# CHECK-DAG: st5 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0xff 0xff }46# CHECK-DAG: st6 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc0 0xff 0xff }47# CHECK-DAG: st7 = { 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 }48 49# CHECK: Process {{[0-9]+}} exited with status = 050