Eric Christopher | 9a9d275 | 2010-07-22 02:48:34 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep sfence |
| 2 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep lfence |
| 3 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep mfence |
| 4 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep MEMBARRIER |
| 5 | |
Eric Christopher | 9a9d275 | 2010-07-22 02:48:34 +0000 | [diff] [blame] | 6 | define void @test() { |
Eli Friedman | 139e669 | 2011-09-27 00:17:29 +0000 | [diff] [blame] | 7 | fence acquire |
| 8 | fence release |
| 9 | fence acq_rel |
| 10 | ret void |
Eric Christopher | 9a9d275 | 2010-07-22 02:48:34 +0000 | [diff] [blame] | 11 | } |