summaryrefslogtreecommitdiffstats
path: root/llvm/test/FileCheck
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-11-01 22:50:54 +0000
committerCraig Topper <craig.topper@gmail.com>2014-11-01 22:50:54 +0000
commita52e0d7cc03306d3a89d891c1c5f4d6fee2cac1f (patch)
treef037c10b8fbae7b4b31b7b0a7b7a411dcd350448 /llvm/test/FileCheck
parent3ca55d9c414541026dfea39bff809fc65e94cc87 (diff)
downloadbcm5719-llvm-a52e0d7cc03306d3a89d891c1c5f4d6fee2cac1f.tar.gz
bcm5719-llvm-a52e0d7cc03306d3a89d891c1c5f4d6fee2cac1f.zip
Avoid undefined behavior in the x86 bmi header file by explicitly checking for 0 before calling __builtin_ctz. Without this the optimizers may take advantage of the undefined behavior and produce incorrect results. LLVM itself still needs to be taught to merge the zero check into the llvm.cttz with defined zero behavior.
llvm-svn: 221065
Diffstat (limited to 'llvm/test/FileCheck')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud