i386: Add tests for lfence with load/indirect branch/ret
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Mar 2020 16:46:19 +0000 (09:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 11 Mar 2020 16:49:13 +0000 (09:49 -0700)
commit97b4a8f744f437fa35afbe20f53e657e9de957cd
treeaf0c8f953d361f67da0e026338edd46bc3fccfe0
parentae531041c7c5956672342f89c486a011c84f027f
i386: Add tests for lfence with load/indirect branch/ret

Add tests for -mlfence-after-load=, -mlfence-before-indirect-branch=
and -mlfence-before-ret=.

* testsuite/gas/i386/i386.exp: Run new tests.
* testsuite/gas/i386/lfence-byte.d: New file.
* testsuite/gas/i386/lfence-byte.e: Likewise.
* testsuite/gas/i386/lfence-byte.s: Likewise.
* testsuite/gas/i386/lfence-indbr-a.d: Likewise.
* testsuite/gas/i386/lfence-indbr-b.d: Likewise.
* testsuite/gas/i386/lfence-indbr-c.d: Likewise.
* testsuite/gas/i386/lfence-indbr.e: Likewise.
* testsuite/gas/i386/lfence-indbr.s: Likewise.
* testsuite/gas/i386/lfence-load.d: Likewise.
* testsuite/gas/i386/lfence-load.s: Likewise.
* testsuite/gas/i386/lfence-ret-a.d: Likewise.
* testsuite/gas/i386/lfence-ret-b.d: Likewise.
* testsuite/gas/i386/lfence-ret.s: Likewise.
* testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
* testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
* testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
* testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
* testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
* testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
* testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
27 files changed:
gas/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/lfence-byte.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-byte.e [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-byte.s [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-indbr-a.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-indbr-b.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-indbr-c.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-indbr.e [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-indbr.s [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-load.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-load.s [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-ret-a.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-ret-b.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-ret.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-byte.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-byte.e [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-byte.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-indbr-a.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-indbr-b.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-indbr-c.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-indbr.e [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-indbr.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-load.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-load.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-ret-a.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lfence-ret-b.d [new file with mode: 0644]