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 Sambucvoid f1(char a) {} 8*0a6a1f1dSLionel Sambuc 9*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f2(i8 %a) f2(unsigned char a)10*0a6a1f1dSLionel Sambucvoid f2(unsigned char a) {} 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f3(i16 %a) f3(short a)13*0a6a1f1dSLionel Sambucvoid f3(short a) {} 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambuc // CHECK-LABEL: define void @f4(i16 %a) f4(unsigned short a)16*0a6a1f1dSLionel Sambucvoid f4(unsigned short a) {} 17