Reid Kleckner | 710c1a4 | 2014-04-24 20:14:34 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | FileCheck %s |
Duncan P. N. Exon Smith | 13f5c58 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder < %s |
Reid Kleckner | 710c1a4 | 2014-04-24 20:14:34 +0000 | [diff] [blame] | 3 | |
| 4 | ; Check that musttail and tail roundtrip. |
| 5 | |
Vedant Kumar | efc0b08 | 2015-10-27 21:17:06 +0000 | [diff] [blame] | 6 | declare cc1023 void @t1_callee() |
| 7 | define cc1023 void @t1() { |
| 8 | ; CHECK: tail call cc1023 void @t1_callee() |
| 9 | tail call cc1023 void @t1_callee() |
Reid Kleckner | 710c1a4 | 2014-04-24 20:14:34 +0000 | [diff] [blame] | 10 | ret void |
| 11 | } |
| 12 | |
Vedant Kumar | efc0b08 | 2015-10-27 21:17:06 +0000 | [diff] [blame] | 13 | declare cc1023 void @t2_callee() |
| 14 | define cc1023 void @t2() { |
| 15 | ; CHECK: musttail call cc1023 void @t2_callee() |
| 16 | musttail call cc1023 void @t2_callee() |
Reid Kleckner | 710c1a4 | 2014-04-24 20:14:34 +0000 | [diff] [blame] | 17 | ret void |
| 18 | } |