Craig Topper | 6bfa2ae | 2017-08-05 23:34:44 +0000 | [diff] [blame] | 1 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| 2 | ; RUN: llc < %s -disable-peephole -mtriple=i386-apple-darwin -mattr=-sse -show-mc-encoding | FileCheck %s |
| 3 | ; RUN: llc < %s -disable-peephole -mtriple=i386-apple-darwin -mattr=-avx,+sse2 -show-mc-encoding | FileCheck %s |
| 4 | ; RUN: llc < %s -disable-peephole -mtriple=i386-apple-darwin -mattr=+avx2 -show-mc-encoding | FileCheck %s |
| 5 | ; RUN: llc < %s -disable-peephole -mtriple=i386-apple-darwin -mcpu=skx -show-mc-encoding | FileCheck %s |
| 6 | |
| 7 | define void @test_x86_sse2_pause() { |
| 8 | ; CHECK-LABEL: test_x86_sse2_pause: |
Francis Visoiu Mistrih | 25528d6 | 2017-12-04 17:18:51 +0000 | [diff] [blame] | 9 | ; CHECK: ## %bb.0: |
Craig Topper | 6bfa2ae | 2017-08-05 23:34:44 +0000 | [diff] [blame] | 10 | ; CHECK-NEXT: pause ## encoding: [0xf3,0x90] |
| 11 | ; CHECK-NEXT: retl ## encoding: [0xc3] |
| 12 | tail call void @llvm.x86.sse2.pause() |
| 13 | ret void |
| 14 | } |
| 15 | declare void @llvm.x86.sse2.pause() nounwind |