Add support and update the testcase. Differential Revision: https://reviews.llvm.org/D49394 llvm-svn: 337494