; This test makes sure that these instructions are properly eliminated.;; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep remimplementationint%test1(int%A){%B=remint%A,1; ISA constant 0retint%B}int%test2(int%A){; 0 % X = 0, we don't need ot preserve traps%B=remint0,%Aretint%B}uint%test3(uint%A){%B=remuint%A,8; & 7retuint%B}