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
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
; RUN: %lli -force-interpreter=true %s > /dev/null

define i32 @main() {
    zext <2 x i1> <i1 true,i1 true> to <2 x i8>
    zext <3 x i1> <i1 true,i1 true,i1 true> to <3 x i8>
    zext <2 x i1> <i1 true,i1 true> to <2 x i16>
    zext <3 x i1> <i1 true,i1 true,i1 true> to <3 x i16>
    zext <2 x i1> <i1 true,i1 true> to <2 x i32>
    zext <3 x i1> <i1 true,i1 true,i1 true> to <3 x i32>
    zext <2 x i1> <i1 true,i1 true> to <2 x i64>
    zext <3 x i1> <i1 true,i1 true,i1 true> to <3 x i64>
    zext <3 x i8> <i8 4, i8 4, i8 4> to <3 x i16>
    zext <2 x i8> <i8 -4, i8 -4> to <2 x i16>
    zext <3 x i8> <i8 4, i8 4, i8 4> to <3 x i32>
    zext <2 x i8> <i8 -4, i8 -4> to <2 x i32>
    zext <3 x i8> <i8 4, i8 4, i8 4> to <3 x i64>
    zext <2 x i8> <i8 -4, i8 -4> to <2 x i64>
    zext <3 x i16> <i16 4, i16 4, i16 4> to <3 x i32>
    zext <2 x i16> <i16 -4, i16 -4> to <2 x i32>
    zext <3 x i16> <i16 4, i16 4, i16 4> to <3 x i64>
    zext <2 x i16> <i16 -4, i16 -4> to <2 x i64>
    zext <3 x i32> <i32 4, i32 4, i32 4> to <3 x i64>
    zext <2 x i32> <i32 -4, i32 -4> to <2 x i64>


    sext <2 x i1> <i1 true,i1 true> to <2 x i8>
    sext <3 x i1> <i1 true,i1 false,i1 true> to <3 x i8>
    sext <2 x i1> <i1 true,i1 true> to <2 x i16>
    sext <3 x i1> <i1 true,i1 false,i1 true> to <3 x i16>
    sext <2 x i1> <i1 true,i1 true> to <2 x i32>
    sext <3 x i1> <i1 true,i1 false,i1 true> to <3 x i32>
    sext <2 x i1> <i1 true,i1 true> to <2 x i64>
    sext <3 x i1> <i1 true,i1 false,i1 true> to <3 x i64>
    sext <3 x i8> <i8 -4, i8 0, i8 4> to <3 x i16>
    sext <2 x i8> <i8 -4, i8 4> to <2 x i16>
    sext <3 x i8> <i8 -4, i8 0, i8 4> to <3 x i32>
    sext <2 x i8> <i8 -4, i8 4> to <2 x i32>
    sext <3 x i8> <i8 -4, i8 0, i8 4> to <3 x i64>
    sext <2 x i8> <i8 -4, i8 4> to <2 x i64>
    sext <3 x i16> <i16 -4, i16 0, i16 4> to <3 x i32>
    sext <2 x i16> <i16 -4, i16 4> to <2 x i32>
    sext <3 x i16> <i16 -4, i16 0, i16 4> to <3 x i64>
    sext <2 x i16> <i16 -4, i16 4> to <2 x i64>
    sext <3 x i32> <i32 -4, i32 0, i32 4> to <3 x i64>
    sext <2 x i32> <i32 -4, i32 4> to <2 x i64>


    uitofp <3 x i1> <i1 true,i1 false,i1 true> to <3 x float>
    uitofp <2 x i1> <i1 true,i1 true> to <2 x double>
    uitofp <3 x i8> <i8 -4,i8 0,i8 4> to <3 x float>
    uitofp <2 x i8> <i8 -4,i8 4> to <2 x double>
    uitofp <3 x i16> <i16 -4,i16 0,i16 4> to <3 x float>
    uitofp <2 x i16> <i16 -4,i16 4> to <2 x double>
    uitofp <3 x i32> <i32 -4,i32 0,i32 4> to <3 x float>
    uitofp <2 x i32> <i32 -4,i32 4> to <2 x double>
    uitofp <3 x i64> <i64 -4,i64 0,i64 4> to <3 x float>
    uitofp <2 x i64> <i64 -4,i64 4> to <2 x double>


    sitofp <3 x i1> <i1 true,i1 false,i1 true> to <3 x float>
    sitofp <2 x i1> <i1 true,i1 true> to <2 x double>
    sitofp <3 x i8> <i8 -4,i8 0,i8 4> to <3 x float>
    sitofp <2 x i8> <i8 -4,i8 4> to <2 x double>
    sitofp <3 x i16> <i16 -4,i16 0,i16 4> to <3 x float>
    sitofp <2 x i16> <i16 -4,i16 4> to <2 x double>
    sitofp <3 x i32> <i32 -4,i32 0,i32 4> to <3 x float>
    sitofp <2 x i32> <i32 -4,i32 4> to <2 x double>
    sitofp <3 x i64> <i64 -4,i64 0,i64 4> to <3 x float>
    sitofp <2 x i64> <i64 -4,i64 4> to <2 x double>

    trunc <2 x i16> <i16 -6, i16 6> to <2 x i8>
    trunc <3 x i16> <i16 -6, i16 6, i16 0> to <3 x i8>
    trunc <2 x i32> <i32 -6, i32 6> to <2 x i8>
    trunc <3 x i32> <i32 -6, i32 6, i32 0> to <3 x i8>
    trunc <2 x i32> <i32 -6, i32 6> to <2 x i16>
    trunc <3 x i32> <i32 -6, i32 6, i32 0> to <3 x i16>
    trunc <2 x i64> <i64 -6, i64 6> to <2 x i8>
    trunc <3 x i64> <i64 -6, i64 6, i64 0> to <3 x i8>
    trunc <2 x i64> <i64 -6, i64 6> to <2 x i16>
    trunc <3 x i64> <i64 -6, i64 6, i64 0> to <3 x i16>
    trunc <2 x i64> <i64 -6, i64 6> to <2 x i32>
    trunc <3 x i64> <i64 -6, i64 6, i64 0> to <3 x i32>


    fpext <2 x float>  < float 0.000000e+00, float 1.0> to <2 x double>
    fpext <3 x float>  < float 0.000000e+00, float -1.0, float 1.0> to <3 x double>

    fptosi <2 x double> < double 0.000000e+00, double 1.0> to <2 x i8>
    fptosi <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i8>
    fptosi <2 x double> < double 0.000000e+00, double 1.0> to <2 x i16>
    fptosi <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i16>
    fptosi <2 x double> < double 0.000000e+00, double 1.0> to <2 x i32>
    fptosi <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i32>
    fptosi <2 x double> < double 0.000000e+00, double 1.0> to <2 x i64>
    fptosi <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i64>

    fptoui <2 x double> < double 0.000000e+00, double 1.0> to <2 x i8>
    fptoui <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i8>
    fptoui <2 x double> < double 0.000000e+00, double 1.0> to <2 x i16>
    fptoui <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i16>
    fptoui <2 x double> < double 0.000000e+00, double 1.0> to <2 x i32>
    fptoui <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i32>
    fptoui <2 x double> < double 0.000000e+00, double 1.0> to <2 x i64>
    fptoui <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x i64>

    fptrunc <2 x double> < double 0.000000e+00, double 1.0> to <2 x float>
    fptrunc <3 x double> < double 0.000000e+00, double 1.0, double -1.0> to <3 x float>

    bitcast <8 x i8> <i8 0, i8 -1, i8 2, i8 -3, i8 4, i8 -5, i8 6, i8 -7> to <4 x i16>
    bitcast <8 x i8> <i8 0, i8 -1, i8 2, i8 -3, i8 4, i8 -5, i8 6, i8 -7> to <2 x i32>
    bitcast <8 x i8> <i8 0, i8 -1, i8 2, i8 -3, i8 4, i8 -5, i8 6, i8 -7> to i64
    bitcast <8 x i8> <i8 0, i8 -1, i8 2, i8 -3, i8 4, i8 -5, i8 6, i8 -7> to <2 x float>
    bitcast <8 x i8> <i8 0, i8 -1, i8 2, i8 -3, i8 4, i8 -5, i8 6, i8 -7> to double

    bitcast <4 x i16> <i16 0, i16 -1, i16 2, i16 -3> to <8 x i8>
    bitcast <4 x i16> <i16 0, i16 -1, i16 2, i16 -3> to <2 x i32>
    bitcast <4 x i16> <i16 0, i16 -1, i16 2, i16 -3> to i64
    bitcast <4 x i16> <i16 0, i16 -1, i16 2, i16 -3> to <2 x float>
    bitcast <4 x i16> <i16 0, i16 -1, i16 2, i16 -3> to double

    bitcast <2 x i32> <i32 1, i32 -1> to <8 x i8>
    bitcast <2 x i32> <i32 1, i32 -1> to <4 x i16>
    bitcast <2 x i32> <i32 1, i32 -1> to i64
    bitcast <2 x i32> <i32 1, i32 -1> to <2 x float>
    bitcast <2 x i32> <i32 1, i32 -1> to double

    bitcast i64 1 to <8 x i8>
    bitcast i64 1 to <4 x i16>
    bitcast i64 1 to <2 x i32>
    bitcast i64 1 to <2 x float>
    bitcast i64 1 to double

    bitcast <2 x float> <float 1.0, float -1.0> to <8 x i8>
    bitcast <2 x float> <float 1.0, float -1.0> to <4 x i16>
    bitcast <2 x float> <float 1.0, float -1.0> to i64
    bitcast <2 x float> <float 1.0, float -1.0> to <2 x i32>
    bitcast <2 x float> <float 1.0, float -1.0> to double

    bitcast double 1.0 to <8 x i8>
    bitcast double 1.0 to <4 x i16>
    bitcast double 1.0 to <2 x i32>
    bitcast double 1.0 to <2 x float>
    bitcast double 1.0 to i64

    ret i32 0
}