When using __builtinalign{up, down}(x, y) with sizeof(y) > sizeof(x) the compiler fails with an assertion error.
This is the assertion I am failing:
Assertion failed: (C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& "SrcTy must be smaller than DestTy for ZExt!"), function getZExt, file /home/am2419/git/llvm/lib/IR/Constants.cpp, line 1580.
This is a minimal test case to reproduce the error: gist
When using __builtinalign{up, down}(x, y) with sizeof(y) > sizeof(x) the compiler fails with an assertion error. This is the assertion I am failing:
This is a minimal test case to reproduce the error: gist