[WebAssembly] Switch to MC for instruction printing.
[oota-llvm.git] / test / CodeGen / WebAssembly / phi.ll
index c87ce63bab9de47f1bc0d6aeebd0208fed9d0775..25fbdca5e5b78a1e49e2b99b1cde2e382285d7ca 100644 (file)
@@ -7,10 +7,10 @@ target triple = "wasm32-unknown-unknown"
 
 ; Basic phi triangle.
 
-; CHECK-LABEL: test0
-; CHECK: (set_local [[REG:@.*]] (argument 0))
-; CHECK: (set_local [[REG]] (sdiv [[REG]] {{.*}}))
-; CHECK: (return [[REG]])
+; CHECK-LABEL: test0:
+; CHECK: div_s $push, (get_local 0), (get_local 3){{$}}
+; CHECK: set_local 0, $pop
+; CHECK: return (get_local 0)
 define i32 @test0(i32 %p) {
 entry:
   %t = icmp slt i32 %p, 0
@@ -25,11 +25,11 @@ done:
 
 ; Swap phis.
 
-; CHECK-LABEL: test1
+; CHECK-LABEL: test1:
 ; CHECK: BB1_1:
-; CHECK: (set_local [[REG0:@.*]] [[REG1:@.*]])
-; CHECK: (set_local [[REG1]] [[REG2:@.*]])
-; CHECK: (set_local [[REG2]] [[REG0]])
+; CHECK: set_local [[REG0:.*]], (get_local [[REG1:.*]])
+; CHECK: set_local [[REG1]], (get_local [[REG2:.*]])
+; CHECK: set_local [[REG2]], (get_local [[REG0]])
 define i32 @test1(i32 %n) {
 entry:
   br label %loop