1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll
Duncan Sands bf62f62058 Make instcombine promote inline asm calls to 'nounwind'
calls.  Remove special casing of inline asm from the
inliner.  There is a potential problem: the verifier
rejects invokes of inline asm (not sure why).  If an
asm call is not marked "nounwind" in some .ll, and
instcombine is not run, but the inliner is run, then
an illegal module will be created.  This is bad but
I'm not sure what the best approach is.  I'm tempted
to remove the check in the verifier...

llvm-svn: 45073
2007-12-16 15:51:49 +00:00

8 lines
184 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep nounwind
define void @bar() {
entry:
call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"( )
ret void
}