1 ; This testcase tests for a problem where LICM hoists
2 ; potentially trapping instructions when they are not guaranteed to execute.
4 ; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext "IfUnEqual" 2 | grep div
14 br bool %c, label %LoopTail, label %IfUnEqual
17 %B1 = div int 4, %A ;; Should not hoist this div!
21 %B = phi int [ 0, %Loop ], [ %B1, %IfUnEqual]
22 br bool %c, label %Loop, label %Out