Home | History | Annotate | Download | only in WebAssembly
      1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s
      2 ; RUN: llc < %s -asm-verbose=false -fast-isel -fast-isel-abort=1 | FileCheck %s
      3 
      4 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
      5 target triple = "wasm32-unknown-unknown"
      6 
      7 ; CHECK-LABEL: return_void:
      8 ; CHECK-NEXT: .endfunc{{$}}
      9 define void @return_void() {
     10   ret void
     11 }
     12 
     13 ; CHECK-LABEL: return_void_twice:
     14 ; CHECK:      store
     15 ; CHECK-NEXT: return{{$}}
     16 ; CHECK:      store
     17 ; CHECK-NEXT: .endfunc{{$}}
     18 define void @return_void_twice(i32 %a) {
     19   %b = icmp ne i32 %a, 0
     20   br i1 %b, label %true, label %false
     21 
     22 true:
     23   store i32 0, i32* null
     24   ret void
     25 
     26 false:
     27   store i32 1, i32* null
     28   ret void
     29 }
     30