Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/2012-01-16-mfence-nosse-flags.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 60c9769439b8 |
line wrap: on
line source
; RUN: llc < %s -mtriple=i686-linux -mattr=-sse | FileCheck %s ; PR11768 @ptr = external global i8* define void @baz() nounwind ssp { entry: %0 = load i8** @ptr, align 4 %cmp = icmp eq i8* %0, null fence seq_cst br i1 %cmp, label %if.then, label %if.else ; Make sure the fence comes before the comparison, since it ; clobbers EFLAGS. ; CHECK: lock ; CHECK-NEXT: orl {{.*}}, (%esp) ; CHECK-NEXT: testl [[REG:%e[a-z]+]], [[REG]] if.then: ; preds = %entry tail call void bitcast (void (...)* @foo to void ()*)() nounwind br label %if.end if.else: ; preds = %entry tail call void bitcast (void (...)* @bar to void ()*)() nounwind br label %if.end if.end: ; preds = %if.else, %if.then ret void } declare void @foo(...) declare void @bar(...)