xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/x86_64-arguments-win32.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -w -triple x86_64-pc-win32 -emit-llvm -o - %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // To be ABI compatible with code generated by MSVC, there shouldn't be any
4*0a6a1f1dSLionel Sambuc // sign/zero extensions on types smaller than 64bit.
5*0a6a1f1dSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f1(i8 %a)
f1(char a)7*0a6a1f1dSLionel Sambuc void f1(char a) {}
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f2(i8 %a)
f2(unsigned char a)10*0a6a1f1dSLionel Sambuc void f2(unsigned char a) {}
11*0a6a1f1dSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f3(i16 %a)
f3(short a)13*0a6a1f1dSLionel Sambuc void f3(short a) {}
14*0a6a1f1dSLionel Sambuc 
15*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f4(i16 %a)
f4(unsigned short a)16*0a6a1f1dSLionel Sambuc void f4(unsigned short a) {}
17