Chris Lattner | 3b68c20 | 2004-03-30 21:21:14 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 |
| 2 | |
| 3 | bool %boolSel(bool %A, bool %B, bool %C) { |
| 4 | %X = select bool %A, bool %B, bool %C |
| 5 | ret bool %X |
| 6 | } |
| 7 | |
| 8 | sbyte %byteSel(bool %A, sbyte %B, sbyte %C) { |
| 9 | %X = select bool %A, sbyte %B, sbyte %C |
| 10 | ret sbyte %X |
| 11 | } |
| 12 | |
| 13 | short %shortSel(bool %A, short %B, short %C) { |
| 14 | %X = select bool %A, short %B, short %C |
| 15 | ret short %X |
| 16 | } |
| 17 | |
| 18 | int %intSel(bool %A, int %B, int %C) { |
| 19 | %X = select bool %A, int %B, int %C |
| 20 | ret int %X |
| 21 | } |
| 22 | |
| 23 | long %longSel(bool %A, long %B, long %C) { |
| 24 | %X = select bool %A, long %B, long %C |
| 25 | ret long %X |
| 26 | } |
| 27 | |
| 28 | double %doubleSel(bool %A, double %B, double %C) { |
| 29 | %X = select bool %A, double %B, double %C |
| 30 | ret double %X |
| 31 | } |
| 32 | |