[WebAssembly] Rename setlocal to set_local to match the spec.
[oota-llvm.git] / test / CodeGen / WebAssembly / phi.ll
index a4675fba711292e2cbe53b6ce5155828807df7ee..c87ce63bab9de47f1bc0d6aeebd0208fed9d0775 100644 (file)
@@ -8,8 +8,8 @@ target triple = "wasm32-unknown-unknown"
 ; Basic phi triangle.
 
 ; CHECK-LABEL: test0
 ; Basic phi triangle.
 
 ; CHECK-LABEL: test0
-; CHECK: (setlocal [[REG:@.*]] (argument 0))
-; CHECK: (setlocal [[REG]] (sdiv [[REG]] {{.*}}))
+; CHECK: (set_local [[REG:@.*]] (argument 0))
+; CHECK: (set_local [[REG]] (sdiv [[REG]] {{.*}}))
 ; CHECK: (return [[REG]])
 define i32 @test0(i32 %p) {
 entry:
 ; CHECK: (return [[REG]])
 define i32 @test0(i32 %p) {
 entry:
@@ -27,9 +27,9 @@ done:
 
 ; CHECK-LABEL: test1
 ; CHECK: BB1_1:
 
 ; CHECK-LABEL: test1
 ; CHECK: BB1_1:
-; CHECK: (setlocal [[REG0:@.*]] [[REG1:@.*]])
-; CHECK: (setlocal [[REG1]] [[REG2:@.*]])
-; CHECK: (setlocal [[REG2]] [[REG0]])
+; CHECK: (set_local [[REG0:@.*]] [[REG1:@.*]])
+; CHECK: (set_local [[REG1]] [[REG2:@.*]])
+; CHECK: (set_local [[REG2]] [[REG0]])
 define i32 @test1(i32 %n) {
 entry:
   br label %loop
 define i32 @test1(i32 %n) {
 entry:
   br label %loop