llvm-project/llvm/test/CodeGen/X86/barrier.ll

13 lines
327 B
LLVM
Raw Normal View History

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-- -mattr=-sse2 | FileCheck %s
define void @test() {
; CHECK-LABEL: test:
; CHECK: # %bb.0:
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: lock orl %eax, (%esp)
; CHECK-NEXT: retl
fence seq_cst
ret void
}