Pavel Chupin | e6617fc | 2014-09-09 11:54:12 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-pc-linux -verify-machineinstrs | FileCheck %s |
| 2 | ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-pc-linux-gnux32 -verify-machineinstrs | FileCheck %s |
| 3 | ; RUN: llc < %s -mcpu=generic -mtriple=i686-pc-linux -verify-machineinstrs | FileCheck %s -check-prefix=IA32 |
| 4 | |
| 5 | ; trivial test for correct call suffix |
| 6 | |
| 7 | define i32 @far() nounwind uwtable { |
| 8 | entry: |
Pavel Chupin | 37b65d8 | 2014-09-17 07:09:23 +0000 | [diff] [blame] | 9 | ; CHECK: callq foo |
| 10 | ; IA32: calll foo |
Pavel Chupin | e6617fc | 2014-09-09 11:54:12 +0000 | [diff] [blame] | 11 | tail call void @foo() nounwind |
| 12 | ret i32 0 |
| 13 | } |
| 14 | |
| 15 | declare void @foo() |