[PATCH] R600: Better fix for bug 20982

Matt Arsenault Matthew.Arsenault at amd.com
Thu Sep 18 10:01:31 PDT 2014


Just do the left shift as unsigned to avoid the UB.

http://reviews.llvm.org/D5398

Files:
  lib/Target/R600/AMDGPUISelLowering.cpp
  test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5398.13836.patch
Type: text/x-patch
Size: 2005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140918/3f0aa2ce/attachment.bin>


More information about the llvm-commits mailing list