Don't handle lret/iret when -mlfence-before-ret=[or|not|shl|yes] since they are inval...
authorliuhongt <hongtao.liu@intel.com>
Sat, 9 May 2020 07:02:50 +0000 (15:02 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 18 May 2020 02:23:59 +0000 (10:23 +0800)
commit503648e41efa19dfb059757ffddf0206b6060520
tree29a806712618bc2fedf880b6db9270e33557f966
parent07a78c595604b00908f06396aa221d446adbe6f8
Don't handle lret/iret when -mlfence-before-ret=[or|not|shl|yes] since they are invalid in SGX enclaves.

gas/ChangeLog
* gas/config/tc-i386.c: Not handle lret/iret.
* gas/testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
* gas/testsuite/gas/i386/lfence-ret-b.d: Ditto.
* gas/testsuite/gas/i386/lfence-ret-c.d: Ditto.
* gas/testsuite/gas/i386/lfence-ret-d.d: Ditto.
* gas/testsuite/gas/i386/lfence-ret.s: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
* gas/testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
14 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/lfence-ret-a.d
gas/testsuite/gas/i386/lfence-ret-b.d
gas/testsuite/gas/i386/lfence-ret-c.d
gas/testsuite/gas/i386/lfence-ret-d.d
gas/testsuite/gas/i386/lfence-ret.s
gas/testsuite/gas/i386/x86-64-lfence-ret-a.d
gas/testsuite/gas/i386/x86-64-lfence-ret-b.d
gas/testsuite/gas/i386/x86-64-lfence-ret-c.d
gas/testsuite/gas/i386/x86-64-lfence-ret-d.d
gas/testsuite/gas/i386/x86-64-lfence-ret-e.d
gas/testsuite/gas/i386/x86-64-lfence-ret.e [deleted file]
gas/testsuite/gas/i386/x86-64-lfence-ret.s