reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
; RUN: llc -mattr=+unimplemented-simd128 -filetype=obj %s -o - | obj2yaml | FileCheck %s

target triple = "wasm32-unknown-unknown"

declare i32 @i32()
declare i64 @i64()
declare float @f32()
declare double @f64()
declare <16 x i8> @v16i8()
declare <8 x i16> @v8i16()
declare <4 x i32> @v4i32()
declare <2 x i64> @v2i64()
declare <4 x float> @v4f32()
declare <2 x double> @v2f64()
declare { i32, i32, i32 } @structret()

define void @f1() {
entry:
  %tmp1 = call i32 @i32()
  %tmp2 = call i64 @i64()
  %tmp3 = call float @f32()
  %tmp4 = call double @f64()
  %tmp5 = call <16 x i8> @v16i8()
  %tmp6 = call <8 x i16> @v8i16()
  %tmp7 = call <4 x i32> @v4i32()
  %tmp8 = call <2 x i64> @v2i64()
  %tmp9 = call <4 x float> @v4f32()
  %tmp10 = call <2 x double> @v2f64()
  %tmp11 = call {i32, i32, i32} @structret()
  ret void
}

define void @vararg(i32, i32, ...) {
  ret void
}

; CHECK-LABEL: - Type: TYPE
; CHECK-NEXT:    Signatures:
; CHECK-NEXT:       - Index: 0
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes: []
; CHECK-NEXT:       - Index: 1
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes:
; CHECK-NEXT:           - I32
; CHECK-NEXT:       - Index: 2
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes:
; CHECK-NEXT:           - I64
; CHECK-NEXT:       - Index: 3
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes:
; CHECK-NEXT:           - F32
; CHECK-NEXT:       - Index: 4
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes:
; CHECK-NEXT:           - F64
; CHECK-NEXT:       - Index: 5
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:         ReturnTypes:
; CHECK-NEXT:           - V128
; CHECK-NEXT:       - Index: 6
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:           - I32
; CHECK-NEXT:         ReturnTypes: []
; CHECK-NEXT:       - Index: 7
; CHECK-NEXT:         ParamTypes:
; CHECK-NEXT:           - I32
; CHECK-NEXT:           - I32
; CHECK-NEXT:           - I32
; CHECK-NEXT:         ReturnTypes: []
; should be no additional types
; CHECK-NOT: ReturnTypes