summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-02-01 15:34:29 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-02-01 15:34:29 +0000
commiteb03ae268e60b8966feb6df052b78f9866fc886a (patch)
tree0d26639ed45ec900cec3ebbbd3c3051ff86f0f3a /llvm/lib
parent84cf6a4333c8dab4046a73e71dc633350740bc01 (diff)
downloadbcm5719-llvm-eb03ae268e60b8966feb6df052b78f9866fc886a.tar.gz
bcm5719-llvm-eb03ae268e60b8966feb6df052b78f9866fc886a.zip
Fix PR14881 by implementing conversion rules between int and complex int.
Prior to the patch, Clang does not properly promote types when a complex integer operand is combined with an integer via a binary operator, or when one is assigned to the other in either order. This patch detects when promotion is needed (and permissible) and generates the necessary code. The test assmes no target has the same size operands for "char" and "long long," and that no target performs arithmetic on char operands without extending them to a larger format first. If there are any targets for which this is not the case, they should be XFAILed. llvm-svn: 174181
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud